Component({
    properties: {
        item: {
            type: Object,
            value: {}
        },
        chatType: {
            type: Number,
            value: null
        }
    },
    data: {},
    methods: {
        del_handle: function() {
            this.triggerEvent("del_record", this.data.item);
        },
        chearRead: function() {
            var t = this.data.item;
            t.un_read_num = 0, this.setData({
                item: t
            }), 2 == this.data.chatType ? wx.navigateTo({
                url: "/packageH/chitchat/chatWindow/chatWindow?chatType=2&user_id=" + t.uid
            }) : 1 == this.data.chatType && wx.navigateTo({
                url: "/packageH/chitchat/chatWindow/chatWindow?chatType=1&groupId=" + t.group_id + "&employeeId=" + t.employee_id
            });
        }
    }
});